﻿@model Silvia.Models.Admin.TeamEditModel
@{
    ViewBag.Title = "夕薇雅化妆工作室 - 团队管理";
    Model.Caption = Model.IsNew ? "新增团队成员" : "编辑团队成员";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnConfirm").ligerButton(
        {
            click: function () {
                $('form').submit();
            }
        });
    });
    
</script>
@using (Html.BeginForm())
{
    @Html.HiddenFor(m => m.ID)
    @Html.HiddenFor(m => m.IsNew)
    <div class="system_input_contain">
        <div class="input-text">
            @Html.LabelFor(m => m.Name)
            @Html.TextBoxFor(m => m.Name)
            @Html.ValidationMessageFor(m => m.Name, new { style = "color:Red" })
        </div>
        <div class="input-text">
            @Html.LabelFor(m => m.Introduction)
            @Html.TextAreaFor(m => m.Introduction)
            @Html.ValidationMessageFor(m => m.Introduction, new { style = "color:Red" })
        </div>
        <div class="input-text">
            @Html.LabelFor(m => m.ImageLink)
            @Html.TextBoxFor(m => m.ImageLink, new Dict() { "class:input_url" })
            @Html.ValidationMessageFor(m => m.ImageLink, new { style = "color:Red" })
        </div>
        <div class="input-text">
            @Html.Partial("Upload")
        </div>
        <div class="input-text">
            @Html.LabelFor(m => m.Seq)
            @Html.TextBoxFor(m => m.Seq)
            @Html.ValidationMessageFor(m => m.Seq, new { style = "color:Red" })
        </div>
        <div class="input-text">
            <input type="button" value="确定" id="btnConfirm"/>
        </div>
    </div>
}